package com.example.eurekaconsumerfeign.controller;

import com.example.eurekaconsumerfeign.service.EurekaFeignUploadClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.io.FileInputStream;
import java.io.InputStream;

@RestController
public class DocController {

    @Autowired
    EurekaFeignUploadClientService eurekaFeignUploadClientService;

    @GetMapping("/consumer")
    public String dc() {
        return eurekaFeignUploadClientService.consumer();
    }

    //TODO 文件上传下载
}
